home *** CD-ROM | disk | FTP | other *** search
/ Telstar Electronic Studios (UK) (Press Kit) / Telstar Electronic Studios (UK) (Press Kit).bin / pc / tes_ects / 002.dir / 00001.ls next >
Encoding:
Text File  |  1996-01-01  |  1.4 KB  |  83 lines

  1. global gColorD, pups_off
  2.  
  3. on startMovie
  4.   global doxlib, stagger, oldx, oldy, roll_me, notanim, pc, mac
  5.   if the machineType <> 256 then
  6.     set mac to 1
  7.   else
  8.     set mac to 0
  9.   end if
  10.   set notanim to 1
  11.   set roll_me to 0
  12.   set stagger to 1
  13.   set oldx to -10
  14.   set oldy to -10
  15.   preLoadCast(56, 91)
  16.   preLoadCast(97, 107)
  17.   preLoadCast(115, 140)
  18. end
  19.  
  20. on disposeRearWindow
  21.   global rwObj
  22.   if objectp(rwObj) then
  23.     rwObj(mdispose)
  24.   end if
  25. end
  26.  
  27. on which_frame
  28.   if random(3) = 1 then
  29.     go("AN1")
  30.   end if
  31.   if random(3) = 2 then
  32.     go("AN2")
  33.   end if
  34.   if random(3) = 3 then
  35.     go("AN3")
  36.   end if
  37. end
  38.  
  39. on pups_off
  40.   repeat with a = 1 to 44
  41.     puppetSprite(a, 0)
  42.   end repeat
  43.   repeat with a = 46 to 48
  44.     puppetSprite(a, 0)
  45.   end repeat
  46. end
  47.  
  48. on allpups_off
  49.   repeat with a = 1 to 48
  50.     puppetSprite(a, 0)
  51.   end repeat
  52. end
  53.  
  54. on exitFrame
  55.   global stagger, oldx, oldy, notanim
  56.   if stagger then
  57.     set stagger to 1
  58.   else
  59.     set stagger to 1
  60.   end if
  61.   set cn45 to the castNum of sprite 45
  62.   if cn45 = 139 then
  63.     if stagger then
  64.       set the castNum of sprite 45 to 115
  65.     end if
  66.   else
  67.     if stagger then
  68.       set the castNum of sprite 45 to cn45 + 1
  69.     end if
  70.   end if
  71.   if the frame > 82 then
  72.     if (oldx = the mouseH) and (oldy = the mouseV) then
  73.       if (the timer > 400) and notanim then
  74.         which_frame()
  75.       end if
  76.     else
  77.       startTimer()
  78.       set oldx to the mouseH
  79.       set oldy to the mouseV
  80.     end if
  81.   end if
  82. end
  83.